<?php


/*
 * Edit by shengxin
 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
 */

namespace api\mall\controller;

use cmf\controller\RestBaseController;
use api\mall\model\StoreModel;
/**
 * Description of LoggerController
 *
 * @author PC
 */
class StoreController extends RestBaseController{
    protected function initialize() {
        parent::initialize();
        if(empty($this->user)){
            $this->error('login');
        }
    }
    
    public function buy(){
        
    }
    
    public function item_list(){
        $model = new StoreModel();

        $type = '';

    }
    
    public function type_list():void{
        $model = new StoreModel();
        $types = $model->types();
        $this->success('ok',$types);
    }
    
    public function buylog(){
        
    }
    

    
//    public function 
}
